import 'dart:convert';

/// code : "线索"
/// topOrgId : ""
/// cou : 1
/// codeId : ""

PhaseCode phaseCodeFromJson(String str) => PhaseCode.fromJson(json.decode(str));
String phaseCodeToJson(PhaseCode data) => json.encode(data.toJson());
class PhaseCode {
  PhaseCode({
      this.code, 
      this.topOrgId, 
      this.cou, 
      this.codeId,});

  PhaseCode.fromJson(dynamic json) {
    code = json['code'];
    topOrgId = json['topOrgId'];
    cou = json['cou'];
    codeId = json['codeId'];
  }
  String? code;
  String? topOrgId;
  num? cou;
  String? codeId;
PhaseCode copyWith({  String? code,
  String? topOrgId,
  num? cou,
  String? codeId,
}) => PhaseCode(  code: code ?? this.code,
  topOrgId: topOrgId ?? this.topOrgId,
  cou: cou ?? this.cou,
  codeId: codeId ?? this.codeId,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['topOrgId'] = topOrgId;
    map['cou'] = cou;
    map['codeId'] = codeId;
    return map;
  }

}